html, body {
  background-color: #FFFFFF;
  color: #eee;
  margin: 0px;
  padding: 0px;

  /* Prevent user selection. */
  user-select: none;
  touch-callout: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}
.dialog {
  display: none;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  font-size: 170%;
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.dialog.visible {
  display: flex;
}
.dialog .wrap {
  padding: 30px 60px;
  margin: 20px auto;
  width: 60%;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 5px;
}
.dialog h1 {
  margin: 0;
}

a, a:visited {
  color: skyblue;
}

#watermark img {
  position: fixed;
  overflow: hidden;
  left: 0;
  bottom: 0;
  opacity: 0.3;
  width: 24px;
  height: 24px;
  padding: 12px;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
#watermark img:hover {
  opacity: 1;
  -webkit-filter: drop-shadow(white 0 0 5px);
}

.title {
  margin: 10px auto;
  color: #000000;
}

canvas {
  cursor: -webkit-grab;
}
canvas:active {
  cursor: -webkit-grabbing;
}

#play-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
	align-items: center;
  justify-content: center;
}
#play-overlay.visible {
	display: flex;
}
#play-overlay img {
  width: 30%;
  height: 30%;
}

#error .message {
  font-family: monospace;
}

ul.carousel {
  width: 700px;
  margin: 20px auto;
  padding: 0;
  overflow: auto;
  text-align: center;
}

/* MOBILE */
@media screen and (max-width: 700px) {
  ul.carousel {
    width: 100%;
    justify-content: flex-start;
  }
}

ul.carousel li {
  list-style: none;
  margin: 0;
  padding: 10px 5px 10px 5px;
  display: inline-block;
  max-width: 125px;
  vertical-align: top;
}

ul.carousel li a {
  display: inline-block;
  text-align: center;
  margin: 0;
  padding: 0;
  color: #999;
  text-decoration: none;
}

ul.carousel li a.current {
  color: #0080e5;
}

ul.carousel li a img {
  width: 124px;
  height: 80px;
}

ul.carousel li a small {
  display: block;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", Arial, sans-serif;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
p {
  font-size: 0.9rem;
  line-height: 1.4rem;
}

h1, h2, h3, p {
  margin: 1rem;
}

p.caption {
  font-size: 0.7rem;
  margin-bottom: 0;
  margin-top: 0;
}

iframe {
  display: block;
  border: none;
  margin: 10px auto;
  margin-bottom: 0;
  padding: 0;
  border: 0;
}

#controls {
  overflow: hidden;
  background: #eee;
  margin: 0 auto;
}

#controls > * {
  margin: 8px;
  cursor: pointer;
  opacity: 0.5;
}

#controls > *:hover {
  opacity: 1;
}

#toggleplay {
  float: left;
  background: url('images/ic_pause_black_24dp.svg');
  width: 24px;
  height: 24px;
}

#toggleplay.paused {
  background: url('images/ic_play_arrow_black_24dp.svg');
}

#togglemute {
  float: right;
  background: url('images/ic_volume_up_black_24dp.svg');
  width: 24px;
  height: 24px;
}

#togglemute.muted {
  background: url('images/ic_volume_off_black_24dp.svg');
}

/* MOBILE */
@media screen and (max-width: 700px) {
  iframe {
    width: 100%;
    height: 240px;
  }
}

/* DESKTOP */
@media screen and (min-width: 700px) {
  iframe {
    height: 400px;
    width: 700px;
  }

  h1, h2, p {
    width: 700px;
    margin: 1rem auto;
  }

  #controls {
    width: 700px;
  }
}



